package newcoder;

public class NC123 {
    public static void main(String[] args) {
        String str = "1 2 3 4";
        String[] s = str.split(" ",-1);
        System.out.println(s);
    }
}
